package com.sms.biz.impl;

import java.util.List;
import java.util.Map;

import com.sms.biz.IChargeRecordBiz;
import com.sms.dao.IChargeRecordDAO;
import com.sms.po.ChargeRecord;

public class ChargeRecordBizImpl implements IChargeRecordBiz {
	private IChargeRecordDAO icrd = null;
	@Override
	public boolean addChargeRecordSerial(ChargeRecord cr) {
		return this.getIcrd().addChargeRecordSerial(cr);
	}


	@Override
	public ChargeRecord findChargeRecordSerialById(long id) {
		return this.getIcrd().findChargeRecordSerialById(id);
	}


	@Override
	public boolean removeChargeRecordSerial(ChargeRecord cr) {
		return this.getIcrd().removeChargeRecordSerial(cr);
	}

	@Override
	public boolean removeChargeRecordSerialById(long id) {
		return this.getIcrd().removeChargeRecordSerialById(id);
	}

	@Override
	public boolean updateChargeRecordSerial(ChargeRecord cr) {
		return this.getIcrd().updateChargeRecordSerial(cr);
	}

	public IChargeRecordDAO getIcrd() {
		return icrd;
	}
	
	public void setIcrd(IChargeRecordDAO icrd) {
		this.icrd = icrd;
	}


	@Override
	public List<ChargeRecord> findChargeRecordSerialByUser(
			Map<String, Object> map, int start, int limit) {
		return this.icrd.findChargeRecordSerialByUser(map, start, limit);
	}


	@Override
	public int findChargeRecordSerialByUserCount(Map<String, Object> map) {
		return this.icrd.findChargeRecordSerialByUserCount(map);
	}
}
